from ninja_extra import NinjaExtraAPI
from system.controllers import UserController, UserTokenController
from storeapp.controllers import (
    BooksController,
    StoresController,
    StoreBookController,
    StoryBookSubscribeController,
)


api = NinjaExtraAPI(
    title="后端管理接口",
    description="使用DjangoNinjaextra实现的后端管理接口",
    version="1.0.0",
    urls_namespace="store",
)


api.register_controllers(
    UserController,
    UserTokenController,
    BooksController,
    StoresController,
    StoreBookController,
    StoryBookSubscribeController,
)
